<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>sysmonpsv: xsysmonpsv_common.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="HTML_custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="xlogo_bg.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">sysmonpsv
   </div>
   <div id="projectbrief">Vitis Drivers API Documentation</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Overview</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="globals.html"><span>APIs</span></a></li>
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="pages.html"><span>Examples</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('xsysmonpsv__common_8h.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">xsysmonpsv_common.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a5c8d4c6bfb7e2cd4d941a8b978b17359"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a5c8d4c6bfb7e2cd4d941a8b978b17359">XSYSMONPSV_INTR_OFFSET</a>&#160;&#160;&#160;0xCU</td></tr>
<tr class="memdesc:a5c8d4c6bfb7e2cd4d941a8b978b17359"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt Offset.  <a href="#a5c8d4c6bfb7e2cd4d941a8b978b17359">More...</a><br/></td></tr>
<tr class="separator:a5c8d4c6bfb7e2cd4d941a8b978b17359"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a8eae39bcb70012826037830d666b7f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a4a8eae39bcb70012826037830d666b7f">XSYSMONPSV_LOCK_CODE</a>&#160;&#160;&#160;0xF9E8D7C6</td></tr>
<tr class="memdesc:a4a8eae39bcb70012826037830d666b7f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lock code value.  <a href="#a4a8eae39bcb70012826037830d666b7f">More...</a><br/></td></tr>
<tr class="separator:a4a8eae39bcb70012826037830d666b7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdf9e95792b4a01a0d0d5c57d76aed22"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#acdf9e95792b4a01a0d0d5c57d76aed22">XSYSMONPSV_INTR_0_ID</a>&#160;&#160;&#160;(144U + 32U)</td></tr>
<tr class="memdesc:acdf9e95792b4a01a0d0d5c57d76aed22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt unique ID.  <a href="#acdf9e95792b4a01a0d0d5c57d76aed22">More...</a><br/></td></tr>
<tr class="separator:acdf9e95792b4a01a0d0d5c57d76aed22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19bd81ddc074908597fdc00c8ff94189"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a19bd81ddc074908597fdc00c8ff94189">XSYSMONPSV_INTR_1_ID</a>&#160;&#160;&#160;(145U + 32U)</td></tr>
<tr class="memdesc:a19bd81ddc074908597fdc00c8ff94189"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interrupt unique ID.  <a href="#a19bd81ddc074908597fdc00c8ff94189">More...</a><br/></td></tr>
<tr class="separator:a19bd81ddc074908597fdc00c8ff94189"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6909b214c40a3f5cec1cf6aa7653cec4"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a6909b214c40a3f5cec1cf6aa7653cec4">XSYSMONPSV_BIT_ALARM0</a>&#160;&#160;&#160;0U</td></tr>
<tr class="memdesc:a6909b214c40a3f5cec1cf6aa7653cec4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit for supply[0-31].  <a href="#a6909b214c40a3f5cec1cf6aa7653cec4">More...</a><br/></td></tr>
<tr class="separator:a6909b214c40a3f5cec1cf6aa7653cec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51605e983789dc6f22ff004195580b5a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a51605e983789dc6f22ff004195580b5a">XSYSMONPSV_BIT_ALARM1</a>&#160;&#160;&#160;1U</td></tr>
<tr class="memdesc:a51605e983789dc6f22ff004195580b5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit for supply[32-63].  <a href="#a51605e983789dc6f22ff004195580b5a">More...</a><br/></td></tr>
<tr class="separator:a51605e983789dc6f22ff004195580b5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade655921aaa7a3eddbd7c648e97627e9"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#ade655921aaa7a3eddbd7c648e97627e9">XSYSMONPSV_BIT_ALARM2</a>&#160;&#160;&#160;2U</td></tr>
<tr class="memdesc:ade655921aaa7a3eddbd7c648e97627e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit for supply[64-95].  <a href="#ade655921aaa7a3eddbd7c648e97627e9">More...</a><br/></td></tr>
<tr class="separator:ade655921aaa7a3eddbd7c648e97627e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42576c00699720cd28723bf61ea40f54"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a42576c00699720cd28723bf61ea40f54">XSYSMONPSV_BIT_ALARM3</a>&#160;&#160;&#160;3U</td></tr>
<tr class="memdesc:a42576c00699720cd28723bf61ea40f54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit for supply[96-127].  <a href="#a42576c00699720cd28723bf61ea40f54">More...</a><br/></td></tr>
<tr class="separator:a42576c00699720cd28723bf61ea40f54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a183d8d8f2ffe40902e80206435f02660"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a183d8d8f2ffe40902e80206435f02660">XSYSMONPSV_BIT_ALARM4</a>&#160;&#160;&#160;4U</td></tr>
<tr class="memdesc:a183d8d8f2ffe40902e80206435f02660"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bit for supply[128-159].  <a href="#a183d8d8f2ffe40902e80206435f02660">More...</a><br/></td></tr>
<tr class="separator:a183d8d8f2ffe40902e80206435f02660"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55435b8423e00a4189594a3a077a259d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a55435b8423e00a4189594a3a077a259d">XSYSMONPSV_BIT_ALARM5</a>&#160;&#160;&#160;5U</td></tr>
<tr class="memdesc:a55435b8423e00a4189594a3a077a259d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reserved.  <a href="#a55435b8423e00a4189594a3a077a259d">More...</a><br/></td></tr>
<tr class="separator:a55435b8423e00a4189594a3a077a259d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace21289a3e9b07bc1446f799ee80d91b"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#ace21289a3e9b07bc1446f799ee80d91b">XSYSMONPSV_BIT_ALARM6</a>&#160;&#160;&#160;6U</td></tr>
<tr class="memdesc:ace21289a3e9b07bc1446f799ee80d91b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reserved.  <a href="#ace21289a3e9b07bc1446f799ee80d91b">More...</a><br/></td></tr>
<tr class="separator:ace21289a3e9b07bc1446f799ee80d91b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59675ead52813b82982b4877c5a81b7e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a59675ead52813b82982b4877c5a81b7e">XSYSMONPSV_BIT_ALARM7</a>&#160;&#160;&#160;7U</td></tr>
<tr class="memdesc:a59675ead52813b82982b4877c5a81b7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reserved.  <a href="#a59675ead52813b82982b4877c5a81b7e">More...</a><br/></td></tr>
<tr class="separator:a59675ead52813b82982b4877c5a81b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed3e600c2f1729e899864291890697ae"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#aed3e600c2f1729e899864291890697ae">XSYSMONPSV_BIT_OT</a>&#160;&#160;&#160;8U</td></tr>
<tr class="memdesc:aed3e600c2f1729e899864291890697ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Over Temperature bit.  <a href="#aed3e600c2f1729e899864291890697ae">More...</a><br/></td></tr>
<tr class="separator:aed3e600c2f1729e899864291890697ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a865655d025cdf853a2ae9a9018ccaa5f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a865655d025cdf853a2ae9a9018ccaa5f">XSYSMONPSV_BIT_TEMP</a>&#160;&#160;&#160;9U</td></tr>
<tr class="memdesc:a865655d025cdf853a2ae9a9018ccaa5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Temperature bit.  <a href="#a865655d025cdf853a2ae9a9018ccaa5f">More...</a><br/></td></tr>
<tr class="separator:a865655d025cdf853a2ae9a9018ccaa5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac51ecf1a7056923d5ee7b2d79c2ad917"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#ac51ecf1a7056923d5ee7b2d79c2ad917">XSYSMONPSV_UP_SAT_SIGNED_VAL</a>&#160;&#160;&#160;0x7FFF</td></tr>
<tr class="memdesc:ac51ecf1a7056923d5ee7b2d79c2ad917"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signed upper saturation value.  <a href="#ac51ecf1a7056923d5ee7b2d79c2ad917">More...</a><br/></td></tr>
<tr class="separator:ac51ecf1a7056923d5ee7b2d79c2ad917"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0a6c963122b8943036348714117761d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#aa0a6c963122b8943036348714117761d">XSYSMONPSV_LOW_SAT_SIGNED_VAL</a>&#160;&#160;&#160;0x8000</td></tr>
<tr class="memdesc:aa0a6c963122b8943036348714117761d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Signed lower saturation value.  <a href="#aa0a6c963122b8943036348714117761d">More...</a><br/></td></tr>
<tr class="separator:aa0a6c963122b8943036348714117761d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf16c31d3d1a905cce7a11808c1b2f22"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#acf16c31d3d1a905cce7a11808c1b2f22">XSYSMONPSV_UP_SAT_VAL</a>&#160;&#160;&#160;0xFFFF</td></tr>
<tr class="memdesc:acf16c31d3d1a905cce7a11808c1b2f22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Upper saturation value.  <a href="#acf16c31d3d1a905cce7a11808c1b2f22">More...</a><br/></td></tr>
<tr class="separator:acf16c31d3d1a905cce7a11808c1b2f22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af705be69c8ce9bae5e89d20d4c430266"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#af705be69c8ce9bae5e89d20d4c430266">XSYSMONPSV_LOW_SAT_VAL</a>&#160;&#160;&#160;0x0000</td></tr>
<tr class="memdesc:af705be69c8ce9bae5e89d20d4c430266"><td class="mdescLeft">&#160;</td><td class="mdescRight">Upper saturation value.  <a href="#af705be69c8ce9bae5e89d20d4c430266">More...</a><br/></td></tr>
<tr class="separator:af705be69c8ce9bae5e89d20d4c430266"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96bd47ddac126b1cff1f2d198db310fe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a96bd47ddac126b1cff1f2d198db310fe">compare</a>(val, thresh)</td></tr>
<tr class="memdesc:a96bd47ddac126b1cff1f2d198db310fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro to compare threshold with current value.  <a href="#a96bd47ddac126b1cff1f2d198db310fe">More...</a><br/></td></tr>
<tr class="separator:a96bd47ddac126b1cff1f2d198db310fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4afca72fb6d0ad4247f86d339a7c15ac"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a4afca72fb6d0ad4247f86d339a7c15ac">twoscomp</a>(val)&#160;&#160;&#160;((((val) ^ 0xFFFF) + 1) &amp; 0x0000FFFF)</td></tr>
<tr class="memdesc:a4afca72fb6d0ad4247f86d339a7c15ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro for 2's compliment.  <a href="#a4afca72fb6d0ad4247f86d339a7c15ac">More...</a><br/></td></tr>
<tr class="separator:a4afca72fb6d0ad4247f86d339a7c15ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16099b2571d3ca0524e7e54165aa80d6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a16099b2571d3ca0524e7e54165aa80d6">ALARM_REG</a>(address)&#160;&#160;&#160;((address) / 32U)</td></tr>
<tr class="memdesc:a16099b2571d3ca0524e7e54165aa80d6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Alarm Register offet for supply.  <a href="#a16099b2571d3ca0524e7e54165aa80d6">More...</a><br/></td></tr>
<tr class="separator:a16099b2571d3ca0524e7e54165aa80d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb9e93a5e3a832c42d695231684ba43d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#abb9e93a5e3a832c42d695231684ba43d">ALARM_SHIFT</a>(address)&#160;&#160;&#160;((address) % 32U)</td></tr>
<tr class="memdesc:abb9e93a5e3a832c42d695231684ba43d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Supply bit in Alarm Register.  <a href="#abb9e93a5e3a832c42d695231684ba43d">More...</a><br/></td></tr>
<tr class="separator:abb9e93a5e3a832c42d695231684ba43d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19668d9ffa3ce7d0838b70efa933fc08"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a19668d9ffa3ce7d0838b70efa933fc08">GET_BIT</a>(nr)&#160;&#160;&#160;(1UL &lt;&lt; (nr))</td></tr>
<tr class="memdesc:a19668d9ffa3ce7d0838b70efa933fc08"><td class="mdescLeft">&#160;</td><td class="mdescRight">Macro for bit shifter.  <a href="#a19668d9ffa3ce7d0838b70efa933fc08">More...</a><br/></td></tr>
<tr class="separator:a19668d9ffa3ce7d0838b70efa933fc08"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:afa09b3eb6bf7927a1217cfee24fdaa86"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a> { <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86a102c7797d2584b126f87eca3179d009e">XSYSMONPSV_EV_DIR_EITHER</a>, 
<a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86ae4d5137bc186658234bb91118e87637c">XSYSMONPSV_EV_DIR_RISING</a>, 
<a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86a71cd3a59169306ff3485c45e7b1d9efa">XSYSMONPSV_EV_DIR_FALLING</a>, 
<a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86a2f8465af690f045e3580f0ce612ac92b">XSYSMONPSV_EV_DIR_NONE</a>
 }</td></tr>
<tr class="separator:afa09b3eb6bf7927a1217cfee24fdaa86"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfe9f0bbf776d4b6c29403ffbd49bf30"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30">XSysMonPsv_TempType</a> { <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30af77834f3af80ba55987a6dd3320090df">XSYSMONPSV_TEMP</a>, 
<a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30ae89a5e61e7817a759c6a8e4c041cd394">XSYSMONPSV_TEMP_MAX</a>, 
<a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30af47c7b392627575724efb983f3e1f2b3">XSYSMONPSV_TEMP_MIN</a>
 }</td></tr>
<tr class="separator:adfe9f0bbf776d4b6c29403ffbd49bf30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a121b9e0621d3f6c2a9b70e2081bb91be"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91be">XSysMonPsv_TempEvt</a> { <a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91beab55778d23fd3e17972e5f218cea9a7e8">XSYSMONPSV_TEMP_EVENT</a>, 
<a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91bea311033c65e024c7db57d9f2acecd1c3e">XSYSMONPSV_OT_EVENT</a>
 }</td></tr>
<tr class="separator:a121b9e0621d3f6c2a9b70e2081bb91be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a6a12e8784552b16f6284da99b9ebf222"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a6a12e8784552b16f6284da99b9ebf222">XSysMonPsv_TempOffset</a> (<a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30">XSysMonPsv_TempType</a> Type)</td></tr>
<tr class="memdesc:a6a12e8784552b16f6284da99b9ebf222"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the register offset for the different type.  <a href="#a6a12e8784552b16f6284da99b9ebf222">More...</a><br/></td></tr>
<tr class="separator:a6a12e8784552b16f6284da99b9ebf222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1941867eda39665e89f3ff23895baed4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a1941867eda39665e89f3ff23895baed4">XSysMonPsv_TempThreshOffset</a> (<a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91be">XSysMonPsv_TempEvt</a> Event, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a> Dir, u32 *Offset)</td></tr>
<tr class="memdesc:a1941867eda39665e89f3ff23895baed4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the temperature threshold (upper or lower) offset.  <a href="#a1941867eda39665e89f3ff23895baed4">More...</a><br/></td></tr>
<tr class="separator:a1941867eda39665e89f3ff23895baed4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6198b0ca31176e635868334bd2ccaba2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a6198b0ca31176e635868334bd2ccaba2">XSysMonPsv_SupplyOffset</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, int Supply)</td></tr>
<tr class="memdesc:a6198b0ca31176e635868334bd2ccaba2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the supply offset.  <a href="#a6198b0ca31176e635868334bd2ccaba2">More...</a><br/></td></tr>
<tr class="separator:a6198b0ca31176e635868334bd2ccaba2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#adde53ad4ac2dfe9a1bdc4a62bb7dd1a2">XSysMonPsv_SupplyThreshOffset</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, int Supply, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a> Dir)</td></tr>
<tr class="memdesc:adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides the supply threshold (upper or lower) offset.  <a href="#adde53ad4ac2dfe9a1bdc4a62bb7dd1a2">More...</a><br/></td></tr>
<tr class="separator:adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbec82431fdcf7cbea444f04bc165417"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#adbec82431fdcf7cbea444f04bc165417">XSysMonPsv_Q8P7ToCelsius</a> (u32 RawData, int *Val, int *Val2)</td></tr>
<tr class="memdesc:adbec82431fdcf7cbea444f04bc165417"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts Q8P7 To Celsius.  <a href="#adbec82431fdcf7cbea444f04bc165417">More...</a><br/></td></tr>
<tr class="separator:adbec82431fdcf7cbea444f04bc165417"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b066fb52f89d2245a6ac21e807ffa17"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a5b066fb52f89d2245a6ac21e807ffa17">XSysMonPsv_CelsiusToQ8P7</a> (u32 *RawData, int Val, int Val2)</td></tr>
<tr class="memdesc:a5b066fb52f89d2245a6ac21e807ffa17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts Celsius To Q8P7.  <a href="#a5b066fb52f89d2245a6ac21e807ffa17">More...</a><br/></td></tr>
<tr class="separator:a5b066fb52f89d2245a6ac21e807ffa17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca75f045ad9bd684a8604c4b00934acd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#aca75f045ad9bd684a8604c4b00934acd">XSysMonPsv_SupplyRawToProcessed</a> (int RawData, int *Val, int *Val2)</td></tr>
<tr class="memdesc:aca75f045ad9bd684a8604c4b00934acd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts raw data to processed.  <a href="#aca75f045ad9bd684a8604c4b00934acd">More...</a><br/></td></tr>
<tr class="separator:aca75f045ad9bd684a8604c4b00934acd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac46eb5747fd8d8f552e675cf7794dd7b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#ac46eb5747fd8d8f552e675cf7794dd7b">XSysMonPsv_SupplyProcessedToRaw</a> (int Val, int Val2, u32 RegVal, u32 *RawData)</td></tr>
<tr class="memdesc:ac46eb5747fd8d8f552e675cf7794dd7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts processed data to raw.  <a href="#ac46eb5747fd8d8f552e675cf7794dd7b">More...</a><br/></td></tr>
<tr class="separator:ac46eb5747fd8d8f552e675cf7794dd7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a988ca4d7c214731f9965743cf77a639a"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a988ca4d7c214731f9965743cf77a639a">XSysMonPsv_IsAlarmPresent</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, XSysMonPsv_Supply Supply)</td></tr>
<tr class="memdesc:a988ca4d7c214731f9965743cf77a639a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if the supply value has exceeded the set threshold values.  <a href="#a988ca4d7c214731f9965743cf77a639a">More...</a><br/></td></tr>
<tr class="separator:a988ca4d7c214731f9965743cf77a639a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b989c85810f2390a4731ff676240825"><td class="memItemLeft" align="right" valign="top">u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a6b989c85810f2390a4731ff676240825">XSysMonPsv_ClearAlarm</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, XSysMonPsv_Supply Supply)</td></tr>
<tr class="memdesc:a6b989c85810f2390a4731ff676240825"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears alarm status.  <a href="#a6b989c85810f2390a4731ff676240825">More...</a><br/></td></tr>
<tr class="separator:a6b989c85810f2390a4731ff676240825"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ae75168c5bf36923920778a77c15190"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a4ae75168c5bf36923920778a77c15190">XSysMonPsv_InterruptEnable</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 Mask, u8 IntrNum)</td></tr>
<tr class="memdesc:a4ae75168c5bf36923920778a77c15190"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the specified interrupts in the device.  <a href="#a4ae75168c5bf36923920778a77c15190">More...</a><br/></td></tr>
<tr class="separator:a4ae75168c5bf36923920778a77c15190"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a780deadc037ba622ecb6dd6ce2e2f559"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a780deadc037ba622ecb6dd6ce2e2f559">XSysMonPsv_InterruptDisable</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 Mask, u8 IntrNum)</td></tr>
<tr class="memdesc:a780deadc037ba622ecb6dd6ce2e2f559"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the specified interrupts in the device.  <a href="#a780deadc037ba622ecb6dd6ce2e2f559">More...</a><br/></td></tr>
<tr class="separator:a780deadc037ba622ecb6dd6ce2e2f559"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd3c28bb9cea2402997c6ee2950330c7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#abd3c28bb9cea2402997c6ee2950330c7">XSysMonPsv_InterruptGetStatus</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 *IntrStatus)</td></tr>
<tr class="memdesc:abd3c28bb9cea2402997c6ee2950330c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the interrupt status read from Interrupt Status Register(ISR).  <a href="#abd3c28bb9cea2402997c6ee2950330c7">More...</a><br/></td></tr>
<tr class="separator:abd3c28bb9cea2402997c6ee2950330c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a396ab64a4d49e54dfbe618b1f827678f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a396ab64a4d49e54dfbe618b1f827678f">XSysMonPsv_InterruptClear</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr, u32 Mask)</td></tr>
<tr class="memdesc:a396ab64a4d49e54dfbe618b1f827678f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the specified interrupts in the Interrupt Status Register(ISR).  <a href="#a396ab64a4d49e54dfbe618b1f827678f">More...</a><br/></td></tr>
<tr class="separator:a396ab64a4d49e54dfbe618b1f827678f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56422c5c70128f1ccedb5b93ad2b48bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmonpsv__common_8h.html#a56422c5c70128f1ccedb5b93ad2b48bd">XSysMonPsv_UnlockRegspace</a> (<a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *InstancePtr)</td></tr>
<tr class="memdesc:a56422c5c70128f1ccedb5b93ad2b48bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlocks the register space of InstancePtr hardware.  <a href="#a56422c5c70128f1ccedb5b93ad2b48bd">More...</a><br/></td></tr>
<tr class="separator:a56422c5c70128f1ccedb5b93ad2b48bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a16099b2571d3ca0524e7e54165aa80d6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ALARM_REG</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">address</td><td>)</td>
          <td>&#160;&#160;&#160;((address) / 32U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Alarm Register offet for supply. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__services_8h.html#ae768764267b169d51b366abe2c67e6ad">XSysMonPsv_DisableVoltageEvents()</a>, and <a class="el" href="xsysmonpsv__services_8h.html#a27ee2cbf4e86a5e66f8ed744187a805f">XSysMonPsv_EnableVoltageEvents()</a>.</p>

</div>
</div>
<a class="anchor" id="abb9e93a5e3a832c42d695231684ba43d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ALARM_SHIFT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">address</td><td>)</td>
          <td>&#160;&#160;&#160;((address) % 32U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Supply bit in Alarm Register. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__services_8h.html#ae768764267b169d51b366abe2c67e6ad">XSysMonPsv_DisableVoltageEvents()</a>, and <a class="el" href="xsysmonpsv__services_8h.html#a27ee2cbf4e86a5e66f8ed744187a805f">XSysMonPsv_EnableVoltageEvents()</a>.</p>

</div>
</div>
<a class="anchor" id="a96bd47ddac126b1cff1f2d198db310fe"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define compare</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">val, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">thresh&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">(((val)&amp;0x8000) || ((thresh)&amp;0x8000) ?                                 \</div>
<div class="line">                 ((val) &lt; (thresh)) :                                          \</div>
<div class="line">                 ((val) &gt; (thresh)))</div>
</div><!-- fragment -->
<p>Macro to compare threshold with current value. </p>

</div>
</div>
<a class="anchor" id="a19668d9ffa3ce7d0838b70efa933fc08"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GET_BIT</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">nr</td><td>)</td>
          <td>&#160;&#160;&#160;(1UL &lt;&lt; (nr))</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Macro for bit shifter. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__services_8h.html#a27ee2cbf4e86a5e66f8ed744187a805f">XSysMonPsv_EnableVoltageEvents()</a>.</p>

</div>
</div>
<a class="anchor" id="a4afca72fb6d0ad4247f86d339a7c15ac"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define twoscomp</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">val</td><td>)</td>
          <td>&#160;&#160;&#160;((((val) ^ 0xFFFF) + 1) &amp; 0x0000FFFF)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Macro for 2's compliment. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__common_8h.html#adbec82431fdcf7cbea444f04bc165417">XSysMonPsv_Q8P7ToCelsius()</a>.</p>

</div>
</div>
<a class="anchor" id="a6909b214c40a3f5cec1cf6aa7653cec4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM0&#160;&#160;&#160;0U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Bit for supply[0-31]. </p>

</div>
</div>
<a class="anchor" id="a51605e983789dc6f22ff004195580b5a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM1&#160;&#160;&#160;1U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Bit for supply[32-63]. </p>

</div>
</div>
<a class="anchor" id="ade655921aaa7a3eddbd7c648e97627e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM2&#160;&#160;&#160;2U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Bit for supply[64-95]. </p>

</div>
</div>
<a class="anchor" id="a42576c00699720cd28723bf61ea40f54"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM3&#160;&#160;&#160;3U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Bit for supply[96-127]. </p>

</div>
</div>
<a class="anchor" id="a183d8d8f2ffe40902e80206435f02660"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM4&#160;&#160;&#160;4U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Bit for supply[128-159]. </p>

</div>
</div>
<a class="anchor" id="a55435b8423e00a4189594a3a077a259d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM5&#160;&#160;&#160;5U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reserved. </p>

</div>
</div>
<a class="anchor" id="ace21289a3e9b07bc1446f799ee80d91b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM6&#160;&#160;&#160;6U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reserved. </p>

</div>
</div>
<a class="anchor" id="a59675ead52813b82982b4877c5a81b7e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_ALARM7&#160;&#160;&#160;7U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reserved. </p>

</div>
</div>
<a class="anchor" id="aed3e600c2f1729e899864291890697ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_OT&#160;&#160;&#160;8U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Over Temperature bit. </p>

</div>
</div>
<a class="anchor" id="a865655d025cdf853a2ae9a9018ccaa5f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_BIT_TEMP&#160;&#160;&#160;9U</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Temperature bit. </p>

</div>
</div>
<a class="anchor" id="acdf9e95792b4a01a0d0d5c57d76aed22"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_INTR_0_ID&#160;&#160;&#160;(144U + 32U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Interrupt unique ID. </p>

</div>
</div>
<a class="anchor" id="a19bd81ddc074908597fdc00c8ff94189"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_INTR_1_ID&#160;&#160;&#160;(145U + 32U)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Interrupt unique ID. </p>

</div>
</div>
<a class="anchor" id="a5c8d4c6bfb7e2cd4d941a8b978b17359"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_INTR_OFFSET&#160;&#160;&#160;0xCU</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Interrupt Offset. </p>

</div>
</div>
<a class="anchor" id="a4a8eae39bcb70012826037830d666b7f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_LOCK_CODE&#160;&#160;&#160;0xF9E8D7C6</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Lock code value. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__common_8h.html#a56422c5c70128f1ccedb5b93ad2b48bd">XSysMonPsv_UnlockRegspace()</a>.</p>

</div>
</div>
<a class="anchor" id="aa0a6c963122b8943036348714117761d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_LOW_SAT_SIGNED_VAL&#160;&#160;&#160;0x8000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Signed lower saturation value. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__common_8h.html#ac46eb5747fd8d8f552e675cf7794dd7b">XSysMonPsv_SupplyProcessedToRaw()</a>.</p>

</div>
</div>
<a class="anchor" id="af705be69c8ce9bae5e89d20d4c430266"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_LOW_SAT_VAL&#160;&#160;&#160;0x0000</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Upper saturation value. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__common_8h.html#ac46eb5747fd8d8f552e675cf7794dd7b">XSysMonPsv_SupplyProcessedToRaw()</a>.</p>

</div>
</div>
<a class="anchor" id="ac51ecf1a7056923d5ee7b2d79c2ad917"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_UP_SAT_SIGNED_VAL&#160;&#160;&#160;0x7FFF</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Signed upper saturation value. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__common_8h.html#ac46eb5747fd8d8f552e675cf7794dd7b">XSysMonPsv_SupplyProcessedToRaw()</a>.</p>

</div>
</div>
<a class="anchor" id="acf16c31d3d1a905cce7a11808c1b2f22"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define XSYSMONPSV_UP_SAT_VAL&#160;&#160;&#160;0xFFFF</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Upper saturation value. </p>

<p>Referenced by <a class="el" href="xsysmonpsv__common_8h.html#ac46eb5747fd8d8f552e675cf7794dd7b">XSysMonPsv_SupplyProcessedToRaw()</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="afa09b3eb6bf7927a1217cfee24fdaa86"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="afa09b3eb6bf7927a1217cfee24fdaa86a102c7797d2584b126f87eca3179d009e"></a>XSYSMONPSV_EV_DIR_EITHER</em>&nbsp;</td><td class="fielddoc">
<p>Rising or falling both direction. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="afa09b3eb6bf7927a1217cfee24fdaa86ae4d5137bc186658234bb91118e87637c"></a>XSYSMONPSV_EV_DIR_RISING</em>&nbsp;</td><td class="fielddoc">
<p>Rising both direction. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="afa09b3eb6bf7927a1217cfee24fdaa86a71cd3a59169306ff3485c45e7b1d9efa"></a>XSYSMONPSV_EV_DIR_FALLING</em>&nbsp;</td><td class="fielddoc">
<p>Falling both direction. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="afa09b3eb6bf7927a1217cfee24fdaa86a2f8465af690f045e3580f0ce612ac92b"></a>XSYSMONPSV_EV_DIR_NONE</em>&nbsp;</td><td class="fielddoc">
<p>No direction. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="a121b9e0621d3f6c2a9b70e2081bb91be"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91be">XSysMonPsv_TempEvt</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a121b9e0621d3f6c2a9b70e2081bb91beab55778d23fd3e17972e5f218cea9a7e8"></a>XSYSMONPSV_TEMP_EVENT</em>&nbsp;</td><td class="fielddoc">
<p>Temperature event. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a121b9e0621d3f6c2a9b70e2081bb91bea311033c65e024c7db57d9f2acecd1c3e"></a>XSYSMONPSV_OT_EVENT</em>&nbsp;</td><td class="fielddoc">
<p>Over Temperature event. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="adfe9f0bbf776d4b6c29403ffbd49bf30"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30">XSysMonPsv_TempType</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="adfe9f0bbf776d4b6c29403ffbd49bf30af77834f3af80ba55987a6dd3320090df"></a>XSYSMONPSV_TEMP</em>&nbsp;</td><td class="fielddoc">
<p>Current temperature. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="adfe9f0bbf776d4b6c29403ffbd49bf30ae89a5e61e7817a759c6a8e4c041cd394"></a>XSYSMONPSV_TEMP_MAX</em>&nbsp;</td><td class="fielddoc">
<p>Maximum temperature reached since reset. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="adfe9f0bbf776d4b6c29403ffbd49bf30af47c7b392627575724efb983f3e1f2b3"></a>XSYSMONPSV_TEMP_MIN</em>&nbsp;</td><td class="fielddoc">
<p>Minimum temperature reached since reset. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a5b066fb52f89d2245a6ac21e807ffa17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_CelsiusToQ8P7 </td>
          <td>(</td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>RawData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts Celsius To Q8P7. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RawData</td><td>Raw Temperature Data. </td></tr>
    <tr><td class="paramname">Val</td><td>Numerator for covnersion to deg C. </td></tr>
    <tr><td class="paramname">Val2</td><td>Denominator for conversion to deg C in Q8.7 format.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

</div>
</div>
<a class="anchor" id="a6b989c85810f2390a4731ff676240825"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_ClearAlarm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XSysMonPsv_Supply&#160;</td>
          <td class="paramname"><em>Supply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears alarm status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if new data available. False if new data isn't available. Invalid if the Supply hasn't been configured. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, <a class="el" href="group__sysmonpsv__api.html#ga87c8cb949820a8865031d158d1c011b7">XSYSMONPSV_ALARM_FLAG0</a>, <a class="el" href="group__sysmonpsv__api.html#ga9a679ed94a444b7c9bfe9932e281d842">XSYSMONPSV_INVALID</a>, <a class="el" href="group__sysmonpsv__api.html#ga916b6265b6d630fc8678e714e3123dfd">XSYSMONPSV_INVALID_SUPPLY</a>, <a class="el" href="xsysmonpsv__direct_8c.html#af4320c775170d738c09e9514f8ed0578">XSysMonPsv_ReadReg32()</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a396ab64a4d49e54dfbe618b1f827678f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_InterruptClear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the specified interrupts in the Interrupt Status Register(ISR). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the struct InstancePtr. </td></tr>
    <tr><td class="paramname">Mask</td><td>32 bit-mask of the interrupts to be cleared. Bit positions of 1 will be cleared. Bit positions of 0 will not change the previous interrupt status.* </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gad6a0d0fc444bc07d4bea0576fb87bb9d">XSYSMONPSV_ISR_OFFSET</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a780deadc037ba622ecb6dd6ce2e2f559"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_InterruptDisable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>IntrNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables the specified interrupts in the device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Mask</td><td>32 bit-mask of the interrupts to be enabled. Bit positions of 1 will be disabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSYSMONPSV_IDR_* bits defined in InstancePtr.h. </td></tr>
    <tr><td class="paramname">IntrNum</td><td>Interrupt disable register to be used</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- XST_FAILURE if error<ul>
<li>XST_SUCCESS if successful </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gae9d0fd1d1e8eb1d4ac3a2fedf9887db3">XSYSMONPSV_IDR0_OFFSET</a>, <a class="el" href="group__sysmonpsv__api.html#ga0531dfb8a91f71cfa8e31bb0abc3d97e">XSYSMONPSV_PCSR_LOCK</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a4ae75168c5bf36923920778a77c15190"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_InterruptEnable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u8&#160;</td>
          <td class="paramname"><em>IntrNum</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables the specified interrupts in the device. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Mask</td><td>32 bit-mask of the interrupts to be enabled. Bit positions of 1 will be enabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSYSMON_IER_* bits defined in InstancePtr.h. </td></tr>
    <tr><td class="paramname">IntrNum</td><td>Interrupt enable register to be used</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- XST_FAILURE if error<ul>
<li>XST_SUCCESS if successful </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gaedc7b72f6668bf1ebcec44de5916a982">XSYSMONPSV_IER0_OFFSET</a>, <a class="el" href="group__sysmonpsv__api.html#ga0531dfb8a91f71cfa8e31bb0abc3d97e">XSYSMONPSV_PCSR_LOCK</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

<p>Referenced by <a class="el" href="xsysmonpsv__services_8h.html#a27ee2cbf4e86a5e66f8ed744187a805f">XSysMonPsv_EnableVoltageEvents()</a>.</p>

</div>
</div>
<a class="anchor" id="abd3c28bb9cea2402997c6ee2950330c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_InterruptGetStatus </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>IntrStatus</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the interrupt status read from Interrupt Status Register(ISR). </p>
<p>Use the XSYSMONPSV_ISR* constants defined in InstancePtr.h to interpret the returned value.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">IntrStatus</td><td>32-bit value representing the contents of the Interrupt Status Register (ISR).</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- -XST_FAILURE when NULL Instance is passed<ul>
<li>XST_SUCCESS if succeeds </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gad6a0d0fc444bc07d4bea0576fb87bb9d">XSYSMONPSV_ISR_OFFSET</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#af4320c775170d738c09e9514f8ed0578">XSysMonPsv_ReadReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="a988ca4d7c214731f9965743cf77a639a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_IsAlarmPresent </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XSysMonPsv_Supply&#160;</td>
          <td class="paramname"><em>Supply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks if the supply value has exceeded the set threshold values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if new data available. False if new data is not available. Invalid if the Supply has not been configured. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, <a class="el" href="group__sysmonpsv__api.html#ga87c8cb949820a8865031d158d1c011b7">XSYSMONPSV_ALARM_FLAG0</a>, <a class="el" href="group__sysmonpsv__api.html#ga9a679ed94a444b7c9bfe9932e281d842">XSYSMONPSV_INVALID</a>, <a class="el" href="group__sysmonpsv__api.html#ga916b6265b6d630fc8678e714e3123dfd">XSYSMONPSV_INVALID_SUPPLY</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#af4320c775170d738c09e9514f8ed0578">XSysMonPsv_ReadReg32()</a>.</p>

</div>
</div>
<a class="anchor" id="adbec82431fdcf7cbea444f04bc165417"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_Q8P7ToCelsius </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>RawData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts Q8P7 To Celsius. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RawData</td><td>Raw temperature Data. </td></tr>
    <tr><td class="paramname">Val</td><td>Value in Q8P7 format. </td></tr>
    <tr><td class="paramname">Val2</td><td>Constant 128.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="xsysmonpsv__common_8h.html#a4afca72fb6d0ad4247f86d339a7c15ac">twoscomp</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#ga68d41d5890402def819f92c449b6aa64">XSysMonPsv_ReadTempProcessed()</a>, and <a class="el" href="group__sysmonpsv__api.html#ga84625720834d5e07d7f4fe9d14bb43f8">XSysMonPsv_ReadTempProcessedSat()</a>.</p>

</div>
</div>
<a class="anchor" id="a6198b0ca31176e635868334bd2ccaba2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_SupplyOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Supply</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the supply offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the <a class="el" href="struct_x_sys_mon_psv.html" title="The XSysmonPsv driver instance data. ">XSysMonPsv</a> instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Offset supply. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, and <a class="el" href="group__sysmonpsv__api.html#gaea6632703187e0a828a7c4200132af8a">XSYSMONPSV_SUPPLY</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#gad9a7e5df580de9e887d2a32e63506af6">XSysMonPsv_ReadSupplyProcessed()</a>, and <a class="el" href="group__sysmonpsv__api.html#gadae2aa6363d44df1bd536d34b057e005">XSysMonPsv_ReadSupplyRaw()</a>.</p>

</div>
</div>
<a class="anchor" id="ac46eb5747fd8d8f552e675cf7794dd7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_SupplyProcessedToRaw </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Val2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>RegVal</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>RawData</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts processed data to raw. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Val</td><td>Numerator for conversion to volts. </td></tr>
    <tr><td class="paramname">Val2</td><td>Denominator for conversion to volts. </td></tr>
    <tr><td class="paramname">RegVal</td><td>Register Value. </td></tr>
    <tr><td class="paramname">RawData</td><td>Converted Raw data.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#ga6983143ca4186de09ea4698a1f716050">XSYSMONPSV_LOW_SAT</a>, <a class="el" href="group__sysmonpsv__api.html#gae910b542514c585b0c21095bfafda0d1">XSYSMONPSV_LOW_SAT_SIGNED</a>, <a class="el" href="xsysmonpsv__common_8h.html#aa0a6c963122b8943036348714117761d">XSYSMONPSV_LOW_SAT_SIGNED_VAL</a>, <a class="el" href="xsysmonpsv__common_8h.html#af705be69c8ce9bae5e89d20d4c430266">XSYSMONPSV_LOW_SAT_VAL</a>, <a class="el" href="group__sysmonpsv__api.html#ga3bbe144c26e48e98c87ee1540e24f892">XSYSMONPSV_SUPPLY_FMT_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#gacf8addb42ba9a943a877e5d3e2d59478">XSYSMONPSV_SUPPLY_FMT_SHIFT</a>, <a class="el" href="group__sysmonpsv__api.html#ga5e282dee35af566569b16ec6b3610b21">XSYSMONPSV_SUPPLY_MODE_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#ga8d056928492e28137d18acdd7ee2bebd">XSYSMONPSV_SUPPLY_MODE_SHIFT</a>, <a class="el" href="group__sysmonpsv__api.html#ga8c544d085eddc2aaf125abab345c6b19">XSYSMONPSV_UP_SAT</a>, <a class="el" href="group__sysmonpsv__api.html#ga35ecf3166abe7254e2c59db1df1b9a6f">XSYSMONPSV_UP_SAT_SIGNED</a>, <a class="el" href="xsysmonpsv__common_8h.html#ac51ecf1a7056923d5ee7b2d79c2ad917">XSYSMONPSV_UP_SAT_SIGNED_VAL</a>, and <a class="el" href="xsysmonpsv__common_8h.html#acf16c31d3d1a905cce7a11808c1b2f22">XSYSMONPSV_UP_SAT_VAL</a>.</p>

</div>
</div>
<a class="anchor" id="aca75f045ad9bd684a8604c4b00934acd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_SupplyRawToProcessed </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>RawData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>Val2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Converts raw data to processed. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">RawData</td><td>Raw voltage data. </td></tr>
    <tr><td class="paramname">Val</td><td>Numerator for conversion to volts. </td></tr>
    <tr><td class="paramname">Val2</td><td>Denominator for conversion to volts.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#ga3bbe144c26e48e98c87ee1540e24f892">XSYSMONPSV_SUPPLY_FMT_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#gacf8addb42ba9a943a877e5d3e2d59478">XSYSMONPSV_SUPPLY_FMT_SHIFT</a>, <a class="el" href="group__sysmonpsv__api.html#gaaf2f57b40ce3352060e2d2b5a251de9a">XSYSMONPSV_SUPPLY_MANTISSA_MASK</a>, <a class="el" href="group__sysmonpsv__api.html#ga6b8df8b3d4dd4bafb488ee19ee1f731a">XSYSMONPSV_SUPPLY_MANTISSA_SIGN</a>, <a class="el" href="group__sysmonpsv__api.html#ga5e282dee35af566569b16ec6b3610b21">XSYSMONPSV_SUPPLY_MODE_MASK</a>, and <a class="el" href="group__sysmonpsv__api.html#ga8d056928492e28137d18acdd7ee2bebd">XSYSMONPSV_SUPPLY_MODE_SHIFT</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#gad9a7e5df580de9e887d2a32e63506af6">XSysMonPsv_ReadSupplyProcessed()</a>.</p>

</div>
</div>
<a class="anchor" id="adde53ad4ac2dfe9a1bdc4a62bb7dd1a2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">u32 XSysMonPsv_SupplyThreshOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>Supply</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a>&#160;</td>
          <td class="paramname"><em>Dir</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the supply threshold (upper or lower) offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the <a class="el" href="struct_x_sys_mon_psv.html" title="The XSysmonPsv driver instance data. ">XSysMonPsv</a> instance. </td></tr>
    <tr><td class="paramname">Supply</td><td>Enum which indicates the desired supply. </td></tr>
    <tr><td class="paramname">Dir</td><td>Type of the direction - falling or rising.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Upper or lower threshold offset. </dd></dl>

<p>References <a class="el" href="struct_x_sys_mon_psv.html#addcacffd66e527f65d6bfd53bcb44605">XSysMonPsv::Config</a>, <a class="el" href="struct_x_sys_mon_psv___config.html#a8dd8a0f21ce7dda3a56d1526c3e8f676">XSysMonPsv_Config::Supply_List</a>, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86ae4d5137bc186658234bb91118e87637c">XSYSMONPSV_EV_DIR_RISING</a>, <a class="el" href="group__sysmonpsv__api.html#gaa118f452e9166fa0d8862b396311462f">XSYSMONPSV_SUPPLY_TH_LOWER</a>, and <a class="el" href="group__sysmonpsv__api.html#ga7ee33c6423739a515a684980176551e0">XSYSMONPSV_SUPPLY_TH_UPPER</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#ga67c461a10a691c449c71cab32fac6a48">XSysMonPsv_GetSupplyThresholdLower()</a>, <a class="el" href="group__sysmonpsv__api.html#ga5b0151be3a224dd63fea642c1fe585ad">XSysMonPsv_GetSupplyThresholdUpper()</a>, <a class="el" href="group__sysmonpsv__api.html#ga91085a71b3a47feced9334972d44fe42">XSysMonPsv_SetSupplyThresholdLower()</a>, and <a class="el" href="group__sysmonpsv__api.html#ga9ad66ba4141b25c3c0d88d2cc9b6da65">XSysMonPsv_SetSupplyThresholdUpper()</a>.</p>

</div>
</div>
<a class="anchor" id="a6a12e8784552b16f6284da99b9ebf222"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_TempOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30">XSysMonPsv_TempType</a>&#160;</td>
          <td class="paramname"><em>Type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the register offset for the different type. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Type</td><td>Max or Min Temperature Type</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>-XST_FAILURE when fails -Register offset </dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gaf0370703ede011a34abca3fe003a9fd3">XSYSMONPSV_DEVICE_TEMP_MAX</a>, <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30af77834f3af80ba55987a6dd3320090df">XSYSMONPSV_TEMP</a>, <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30ae89a5e61e7817a759c6a8e4c041cd394">XSYSMONPSV_TEMP_MAX</a>, and <a class="el" href="xsysmonpsv__common_8h.html#adfe9f0bbf776d4b6c29403ffbd49bf30af47c7b392627575724efb983f3e1f2b3">XSYSMONPSV_TEMP_MIN</a>.</p>

<p>Referenced by <a class="el" href="group__sysmonpsv__api.html#ga68d41d5890402def819f92c449b6aa64">XSysMonPsv_ReadTempProcessed()</a>, and <a class="el" href="group__sysmonpsv__api.html#ga215a6613a637b848cdd432f6f5678c15">XSysMonPsv_ReadTempRaw()</a>.</p>

</div>
</div>
<a class="anchor" id="a1941867eda39665e89f3ff23895baed4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XSysMonPsv_TempThreshOffset </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91be">XSysMonPsv_TempEvt</a>&#160;</td>
          <td class="paramname"><em>Event</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86">XSysMonPsv_EventDir</a>&#160;</td>
          <td class="paramname"><em>Dir</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32 *&#160;</td>
          <td class="paramname"><em>Offset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides the temperature threshold (upper or lower) offset. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Event</td><td>Temp or OT event type. </td></tr>
    <tr><td class="paramname">Dir</td><td>Falling or rising direction </td></tr>
    <tr><td class="paramname">Offset</td><td>Upper or lower threshold offset.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>- -XST_FAILURE when fails<ul>
<li>XST_SUCCESS when correct params are used. </li>
</ul>
</dd></dl>

<p>References <a class="el" href="group__sysmonpsv__api.html#gad0c0ffd131b82adc94d7acddc0e62215">XSYSMONPSV_DEVICE_TEMP_TH_FALLING</a>, <a class="el" href="group__sysmonpsv__api.html#ga0eecfe6de4f7888f7891160ce19ad4c8">XSYSMONPSV_DEVICE_TEMP_TH_RISING</a>, <a class="el" href="xsysmonpsv__common_8h.html#afa09b3eb6bf7927a1217cfee24fdaa86ae4d5137bc186658234bb91118e87637c">XSYSMONPSV_EV_DIR_RISING</a>, <a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91bea311033c65e024c7db57d9f2acecd1c3e">XSYSMONPSV_OT_EVENT</a>, <a class="el" href="group__sysmonpsv__api.html#gac5adab57ea2f5178c983b7498f90c47c">XSYSMONPSV_OT_TEMP_TH_FALLING</a>, <a class="el" href="group__sysmonpsv__api.html#ga9bdf5ec8bcda757e1e6ee5066cec61c9">XSYSMONPSV_OT_TEMP_TH_RISING</a>, and <a class="el" href="xsysmonpsv__common_8h.html#a121b9e0621d3f6c2a9b70e2081bb91beab55778d23fd3e17972e5f218cea9a7e8">XSYSMONPSV_TEMP_EVENT</a>.</p>

</div>
</div>
<a class="anchor" id="a56422c5c70128f1ccedb5b93ad2b48bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void XSysMonPsv_UnlockRegspace </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_x_sys_mon_psv.html">XSysMonPsv</a> *&#160;</td>
          <td class="paramname"><em>InstancePtr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Unlocks the register space of InstancePtr hardware. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">InstancePtr</td><td>Pointer to the driver instance.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>None. </dd></dl>

<p>References <a class="el" href="xsysmonpsv__common_8h.html#a4a8eae39bcb70012826037830d666b7f">XSYSMONPSV_LOCK_CODE</a>, <a class="el" href="group__sysmonpsv__api.html#ga0531dfb8a91f71cfa8e31bb0abc3d97e">XSYSMONPSV_PCSR_LOCK</a>, and <a class="el" href="xsysmonpsv__direct_8c.html#a858045476b6a6087db4ca972b571177b">XSysMonPsv_WriteReg32()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
	<p class="footer">&copy; Copyright 2015-2022 Xilinx, Inc. All Rights Reserved.</p>
	<p class="footer">&copy; Copyright 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved.</p>
</div>
</body>
</html>
